package com.ddwl.schema.bo.goods.retail;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2021/4/30 16:25
 */
@ApiModel("批量添加打折商品")
@Getter
@Setter
public class DiscountItemBatchAddBo {

    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty("店铺id")
    private String shopId;

    @NotNull(message = "请选择商品")
    @Size(min=1,message = "至少选择一个商品")
    @ApiModelProperty("需要添加打折的商品列表")
    private List<DiscountItemAddBo> discountItemAddBoList;

}
